package com.chat.login.domain.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;

/**
 * @author qianzui333
 * 用于传输重置密码的数据
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ForgotPasswordDTO implements Serializable {
    //账号
    @NotBlank(message = "账号不能为空")
    private String account;
    //邮箱
//    @NotBlank(message = "邮箱不能为空")
//    @Email(message = "邮箱格式错误")
//    private String email;
    //密码
    @NotBlank(message = "密码不能为空")
    @Size(min = 1, max = 20)
    private String password;
    //确认密码
    @NotBlank(message = "确认密码不能为空")
    @Size(min = 1, max = 20)
    private String confirmPassword;
    //凭证
    @NotBlank(message = "临时凭证不能为空")
    private String voucher;
}
